﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using CXMLStudioIDE.Common.Entities;
using System.Windows.Forms;
using CXMLStudioIDE.Forms;

namespace CXMLStudioIDE.Views
{
    public interface ISolutionExplorerView
    {
        #region Properties
        MainForm ParentMainForm { get; }
        Int32 SelectedNodeIndex { get; }
        TreeNodeCollection Nodes { get; }
        Cursor Cursor { get; set; }
        string SelectedNodeText { get; }
        string SelectedNodeName { get; }
        TreeNode SelectedNode { get; }
        #endregion

        #region Methods
        void PopulateTreeView(int parentID, DataTable projects, Solution solution);
        void ClearTreeView();
        void ExpandAllTreeView();
        void ClearNodes();
        #endregion

        #region Events
        event TreeNodeMouseClickEventHandler OnNodeMouseClick;
        event EventHandler OnAddNewProject;
        event EventHandler OnAddExistingProject;
        event EventHandler OnRemove;
        event EventHandler OnAddExistingBE;
        event EventHandler OnAddNewBE;
        event EventHandler OnPropertiesClick;
        event KeyPressEventHandler MyOnKeyPress;
        #endregion
    }
}
